﻿using System;
using System.Collections.Generic;
using System.Text;
using System.ComponentModel;
using System.Data.Linq.Mapping;
using System.Runtime.Serialization;
using RaisingStudio.Data.TestProject;

namespace RaisingStudio.Data.Entities
{
    /// <summary>
    /// Item
    /// </summary>
    [Serializable]
    [DataContract]
    [Table(Name = "Item")]
    partial class TestItem
    {
        #region Members

        private string _ItemId;
        /// <summary>
        /// ItemId
        /// </summary>
        [Description("ItemId")]
        [DataMember]
        [Column(Name = "ItemId", CanBeNull = false, IsPrimaryKey = true)]
        public string ItemId
        {
          get 
          {
              return this._ItemId;
          }
          set 
          {
              this._ItemId = value;
          }
        }


        private string _ProductId;
        /// <summary>
        /// ProductId
        /// </summary>
        [Description("ProductId")]
        [DataMember]
        [Column(Name = "ProductId", CanBeNull = false)]
        public string ProductId
        {
          get 
          {
              return this._ProductId;
          }
          set 
          {
              this._ProductId = value;
          }
        }


        private float _ListPrice;
        /// <summary>
        /// ListPrice
        /// </summary>
        [Description("ListPrice")]
        [DataMember]
        [Column(Name = "ListPrice", CanBeNull = false, DbType = "DECIMAL(10,2)")]
        public float ListPrice
        {
            get
            {
                return this._ListPrice;
            }
            set
            {
                this._ListPrice = value;
            }
        }


        private double? _UnitCost;
        /// <summary>
        /// UnitCost
        /// </summary>
        [Description("UnitCost")]
        [DataMember]
        [Column(Name = "UnitCost", DbType = "DECIMAL(10,2)")]
        public double? UnitCost
        {
            get
            {
                return this._UnitCost;
            }
            set
            {
                this._UnitCost = value;
            }
        }


        private int? _Supplier;
        /// <summary>
        /// Supplier
        /// </summary>
        [Description("Supplier")]
        [DataMember]
        [Column(Name = "Supplier", CanBeNull = true)]
        public int? Supplier
        {
          get 
          {
              return this._Supplier;
          }
          set 
          {
              this._Supplier = value;
          }
        }


        private ItemStatus _Status;
        /// <summary>
        /// Status
        /// </summary>
        [Description("Status")]
        [DataMember]
        [Column(Name = "Status", DbType = "VARCHAR(50)")]
        public ItemStatus Status
        {
            get
            {
                return this._Status;
            }
            set
            {
                this._Status = value;
            }
        }


        private string _Name;
        /// <summary>
        /// Name
        /// </summary>
        [Description("Name")]
        [DataMember]
        [Column(Name = "Name")]
        public string Name
        {
          get 
          {
              return this._Name;
          }
          set 
          {
              this._Name = value;
          }
        }


        private string _Image;
        /// <summary>
        /// Image
        /// </summary>
        [Description("Image")]
        [DataMember]
        [Column(Name = "Image")]
        public string Image
        {
          get 
          {
              return this._Image;
          }
          set 
          {
              this._Image = value;
          }
        }

        #endregion
    }
}
